﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/ControlPanel.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="intecnologia.Admin.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <center>
        <br />
        <% if (!UserLoggedIn()) %>
        <% { %>
                <h2>Login</h2>
                <div class="mid_content">
                    <br />
                    <table style="text-align: left;">
                        <tr>
                            <td>Nombre de usuario:</td>
                            <td><asp:TextBox ID="tbUsername" runat="server" Width="142px"></asp:TextBox></td>
                            <td><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="tbUsername"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td>Contraseña:</td>
                            <td><asp:TextBox ID="tbPassword" runat="server" Width="142px" TextMode="Password"></asp:TextBox></td>
                            <td><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="tbPassword"></asp:RequiredFieldValidator></td>
                        </tr>
                    </table>
                    <asp:Label ID="lblLoginError" runat="server" Text="Usuario/contraseña no válidos." ForeColor="Red" Visible="false"></asp:Label>
                    <br />
                    <asp:Button ID="btnLogin" runat="server" Text="Entrar" class="boton" 
                        onclick="btnLogin_Click" />
                </div>
        <% } %>
        <% else %>
        <% { %>
                <h2>Panel de Control</h2>
                <div class="mid_content">
                    <h3>Bienvenido al panel de control</h3>
                </div>
        <% } %>
        <br />
    </center>
</asp:Content>
